/**
 * 接口请求封装
 *
 **/
import api from "../utils/api";

/**
 * @param {string} url
 * @param {object} params
 */
export const login = (method: 'get' | 'post',params: object = {}) => {
    return api.http({
        method: method,
        url: '/admin/index/index'
    });
}

/**
 * 登录
 *
 * @param params
 * @returns {Object}
 */
export const postlogin = (params: object = {}) => {
    return api.http({
        method: 'post',
        url: '/admin/index/login',
        data: params
    })
}